import { axios } from '@/utils/request'

/**
 * 查询学院表
 *
 * @author Levin
 * @date 2022-07-01 15:41:14
 */
export function sysCollegePage (parameter) {
  return axios({
    url: '/sysCollege/page',
    method: 'post',
    data: parameter
  })
}

/**
 * 学院表列表
 *
 * @author Levin
 * @date 2022-07-01 15:41:14
 */
export function sysCollegeList (parameter) {
  return axios({
    url: '/sysCollege/list',
    method: 'get',
    params: parameter
  })
}

/**
 * 添加学院表
 *
 * @author Levin
 * @date 2022-07-01 15:41:14
 */
export function sysCollegeAdd (parameter) {
  return axios({
    url: '/sysCollege/add',
    method: 'post',
    data: parameter
  })
}

/**
 * 编辑学院表
 *
 * @author Levin
 * @date 2022-07-01 15:41:14
 */
export function sysCollegeEdit (parameter) {
  return axios({
    url: '/sysCollege/edit',
    method: 'post',
    data: parameter
  })
}

/**
 * 删除学院表
 *
 * @author Levin
 * @date 2022-07-01 15:41:14
 */
export function sysCollegeDelete (parameter) {
  return axios({
    url: '/sysCollege/delete',
    method: 'post',
    data: parameter
  })
}

/**
 * 导出学院表
 *
 * @author Levin
 * @date 2022-07-01 15:41:14
 */
export function sysCollegeExport (parameter) {
  return axios({
    url: '/sysCollege/export',
    method: 'get',
    params: parameter,
    responseType: 'blob'
  })
}
